let data = {prod:'pc',wd:'a'};
let str = '?';
for(let key in data){
    str+=`${key}=${data[key]}&`;
}
console.log(str)